<{include file="element/inc_header.html"}>
 
<div class="main-container" id="main-container">
	<script type="text/javascript">
		try{ace.settings.check('main-container' , 'fixed')}catch(e){}
	</script>

	<div class="main-container-inner">
		<div class="page-content">
			<div class="page-header">
				<h1>
					数据列表
					<small>
						<i class="icon-double-angle-right"></i>
						数据表格 &amp; 列表
					</small>
				</h1>
			</div><!-- /.page-header --> 
			<div class="row">
				<div class="col-xs-12">
					<!-- PAGE CONTENT BEGINS -->						
					<div class="table-responsive">
						<table id="sample-table-1" class="table table-striped table-bordered table-hover">
							<thead>
								<tr>
									<th class="center">&nbsp;</th>
									<th>昵称</th>
									<th>头像</th>
									<th>
										<i class="icon-time bigger-110 hidden-480"></i>
										金额
									</th>
									<th>状态</th>
									<th></th>
								</tr>
							</thead> 
							<tbody> 
								<{foreach from=$datalist key=ky item=it }>

								<tr>
									<td class="center"><{1+$ky}></td> 
									<!-- <td><{$it.uid}></td> --> 
									<td><{$it.nickname}></td> 
									<td> 
										<img style="height:40px" src="<{$it.headimg}>" /> 
									</td>
									<td><{$it.money}></td> 
									<td>状态</td>
									<td>
										<div class="btn-group">
											<button did="<{$it.id}>" class="setbd btn btn-info btn-xs">
												<i class="icon-edit bigger-120"></i>
												入榜 
											</button>
										</div>
									</td>
								</tr>
								<{/foreach}>  
							</tbody>
						</table>
					</div>
					<!-- 底部分布 -->			
					<div class="modal-footer no-margin-top">  
						<ul class="pagination pull-right no-margin">
							<{$pager}>
						</ul>
					</div> 
				</div> 
			</div><!-- /.row --> 
		</div><!-- /.page-content --> 
  
	</div><!-- /.main-container -->
</div>
<{include file="element/js_lib.html"}>
<script language="javascript">
jQuery(function(){
	$('.setbd').click(function(){
		var url = '/admin.php?c=phb&a=setInbd&gid='+$(this).attr('did');
		$.getJSON(url,function(d){
			alert(d.m);
		});
	});
});
</script> 
